package com.xff.factory;

import com.xff.bean.Person;

public class PersonStaticFactory {

    public static Person getInstance(String name){
        Person person=new Person();
        person.setId(1);
        person.setName(name);
        person.setAge(22);
        return person;
    }
}
